<form action="<? echo $info['url']; ?>" method="post" enctype="multipart/form-data">
    <table width="100%">
        <tr><td>
    <strong>Название:</strong><br />
    <input name="title" type="text" value="<? echo $info['title']; ?>" class="long" /><br />
    <strong>Цена:</strong><br />
    <input name="price" type="text" value="<? echo $info['price']; ?>" class="long" /><br />
            </td><td>
<strong>Изображение</strong><br />
            <div style="height:170px; position:relative; float:left; padding:0px;margin-top:0px; margin-right: 0px; width:286px; text-align: center; border:1px solid #cccccc;">
                <script type="text/javascript">
                  function ready(file){
                      jQuery("#image").html("<img src='/images/catalog/<?=$info['id']?>---286.jpg' />");
                  }
                </script>
                <?
                    if (file_exists(LocalDir.'/images/catalog/'.$info['id'].'---235.jpg'))
                        $img='<img src="/images/catalog/'.$info['id'].'---286.jpg" width="100" />';
                    else
                        $img='<img src="/images/no-logo.jpg" width="110" />';
                ?>
                <span id="image" ><?=$img?></span>
                <div style="position:absolute; bottom: 5px; right: 5px;">
                    <span id="loader" ></span></div>
                <script type="text/javascript">
                    var flashvars = {
                            send_to: "/7ert54/process_files.php?catalog=<?=$info['id']?>",
                            endFunction: "ready",
                            file_desc:"*.jpg, *.png, *.gif",
                            file_ext:"*.jpg; *.png; *.gif"
                    };
                    var params = {
                            allowscriptaccess: "always",
                            allowFullScreen: "false",
                            wmode:'transparent',
                            name:"uploader"
                    };
                    var attributes = {
                            id: "uploader",
                            name:"uploader"
                    };
                    swfobject.embedSWF("/swf/upl.swf", "loader", "49px", "49px", "9.0.0", false, flashvars, params, attributes);
                    
                </script>
                
            </div> 
            </td>
        </tr>
    </table>

<b>Описание:</b><br />
    <?
include_once '7ert54/fckeditor/fckeditor.php';
$oFCKeditor = new FCKeditor('about') ;
$oFCKeditor->Height = '500';
$oFCKeditor->BasePath = '/7ert54/fckeditor/';
$oFCKeditor->Value = stripslashes($info['about']);
$oFCKeditor->Create() ; 
?>


<input type="submit" value="Сохранить">
</form>
        <div class="many_check" style="display:none;"><?=$checks?></div>
        <script type="text/javascript">
            jQuery(document).ready(function(){
                
                jQuery('.many_check').dialog({autoOpen:false, title:'Заболевания для препарата', width: '650px',
                    buttons:{ 
                        "Отмена":function(){
                            jQuery(this).dialog("close");
                        },
                        "Выбрать": function() { 
                            i=0;
                            jQuery('#zab_collect').html('');
                            jQuery(".many_check input:checkbox[checked]").each(function(){
                                jQuery('#zab_collect').append('<input type="hidden" name="zab'+i+'" value="'+jQuery(this).attr('selid')+'" />');
                                i++;
                            });
                            jQuery('#zab_count').html('Выбрано:'+i);
                            jQuery(this).dialog("close"); 
                        }
                    }
                });
                jQuery('#open_form_zab').bind('click', function(){
                    jQuery('.many_check').dialog('open'); return false;
                });
            });
        </script>
